﻿<UserControl
  x:Class="Renren.Controls.HeaderBox"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"
  FontFamily="{StaticResource PhoneFontFamilyNormal}"
  FontSize="{StaticResource PhoneFontSizeNormal}"
  Foreground="{StaticResource PhoneForegroundBrush}"
  d:DataContext="{d:DesignData /SampleData/NewsViewModel.xaml}">

  <Grid x:Name="LayoutRoot">
    <StackPanel Orientation="Horizontal">
      <Image x:Name="HeadPhoto" Source="{Binding HeadUrl}"
             Height="50" Width="50" VerticalAlignment="Top" Margin="8,6,0,0" />
      <StackPanel Width="400">
        <TextBlock x:Name="NameField" Text="{Binding Name}" TextWrapping="Wrap" Margin="12,-3,12,0"
                   Style="{StaticResource PhoneTextExtraLargeStyle}" HorizontalAlignment="Left" />
        <TextBlock Text="{Binding UpdateTime}"
                   TextWrapping="Wrap"
                   Style="{StaticResource PhoneTextSubtleStyle}" HorizontalAlignment="Left" />
        <TextBlock Text="{Binding Title}" x:Name="MessageField" TextWrapping="Wrap"
                   Margin="12,0" HorizontalAlignment="Left" />
      </StackPanel>
    </StackPanel>
  </Grid>
</UserControl>
